package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.user.dto.UserDto;
import com.fitness.fitness.modal.user.entity.User;
import com.fitness.fitness.modal.user.vo.UserVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface UserConvertor {
    UserVO entity2VO(User user);

    User dto2Entity(UserDto userDto);

    Page<UserVO> entity2Vo(Page<User> userBoPage);
}
